#include <stdlib.h>
#include <stdio.h>
#include <assert.h>
#include "tcpalpha.h"

tcpalpha
alpha_create(int i1, int i2, int i3) {
	return (arista_fromNodes(i1,i2,i3));
}

tcpprior
alpha_prior(const tcpalpha elem)
{
	assert(elem!=NULL);
	return arista_peso(elem);
}

Bool
prior_ord(const tcpprior x, const tcpprior y) {
	return (x<=y);
}

tcpalpha
alpha_destroy(tcpalpha t) {
	return arista_destroy(t);
}

tcpalpha
alpha_clone (tcpalpha t) {
	return arista_clone(t);
}

/*	TEST	
int main (void)
{
	int w;
	Bool b1,b2;
	tcpalpha a1=NULL,a2=NULL,a3=NULL;
	b1 = FALSE;
	b2 = TRUE;

	a1 = alpha_create(1,2,10);
	a2 = alpha_clone(a1);
	a3 = alpha_create(1,3,20);
	w = alpha_prior(a2);
	b1 = prior_ord(alpha_prior(a1),alpha_prior(a2));
	b2 = prior_ord(alpha_prior(a3),alpha_prior(a1));

	if (w==10 && b1 && !b2)
		printf("\nTest Superado\n");
	else
		printf("\nTest Fallido\n");

	a1 = alpha_destroy(a1);
	a2 = alpha_destroy(a2);
	a3 = alpha_destroy(a3);

	return 0;
}*/
